<%@ page language="java" pageEncoding="UTF-8"%>
<%@page import="com.fick.hibernate.dao.*"%>
<%@page import="com.fick.hibernate.model.*"%>
<jsp:useBean id="pager" class="com.fick.util.Pager"></jsp:useBean>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>滑县公安信息网</title>
<link href="images/hxgaj.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/swfobject.js"></script>
</head>
<body>
<%@include file="inc/head.jsp"%>
<!-- hxgaj -->
<table width="1003" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td align="left" valign="top"><table width="761" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="32" align="right" valign="middle" background="images/wzdh.gif"><table border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="745" height="25" align="left" valign="middle" class="dhwz_wz3">视频播放</td>
            </tr>
        </table></td>
      </tr>
    </table>
    <table width="728" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td height="5"></td>
				</tr>
			</table>
			
<%
	MediaDAO mediaDAO = new MediaDAO();
	String mediaid=request.getParameter("id");
	Media media=mediaDAO.findById(mediaid);
%>	
    <%
		if (media.getMediaUrl() != null) {
			String url = media.getMediaUrl();
			String type = url.substring(url.lastIndexOf("."), url.length());
			if (type.equals(".flv") || type.equals(".swf")) {
	%>
     <table border="0" cellspacing="0" cellpadding="0" >
     <tr height="10">
     <td>&nbsp;</td>
     </tr>
      <tr >
        <td class="zxsp5">		
		<div id="player5" style="width:220px; margin:0px; border:solid 5px #50031a;color:#ffffff;" >
</div>
<script type="text/javascript">
	var s5 = new SWFObject("images/FlvPlayer201002.swf","playlist","728","520","7");
	s5.addParam("allowfullscreen","true");
	s5.addVariable("autostart","true");
	s5.addVariable("image","<%=media.getMediaIco() %>");
	s5.addVariable("file","<%=url %>");
	s5.addVariable("width","728");
	s5.addVariable("height","520");
	s5.write("player5");
</script>
	<%
			}
		}
	%>		
		</td>
      </tr>
    </table>
    </td>
    <td width="235" align="center" valign="top">
      </td>
</table>
<!-- hxgaj -->
<%@include file="inc/foot.jsp"%>
</body>
</html>